<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<form th:action="@{/myLoginPage}" method="post">
    <label>用户名</label><input type="text" placeholder="请输入用户名" name="uname">

    <br/>

    <label>密码</label><input type="password" placeholder="请输入密码" name="pwd">

    <br/>

    <input type="submit" name="提交">
</form>

<div>
    <!-- 登录异常 -->
    <span th:if="${param.error}" >grgr</span>
</div>

<div>
    <!-- 登出带 http://127.0.0.1:8080/myLoginPage?logout 的?logout 能进行回显判断param.logout-->
    <span th:if="${param.logout}">fefe</span>
</div>

</body>
</html>